import $request from '../utils/request'
// 获取新闻列表
export function newsList(data, method = 'get') {
  return $request({
    url: 'news/list',
    method,
    data
  }, true,true,true)
}
// 获取新闻详情
export function newsDetail(data, method = 'get') {
  return $request({
    url: 'news/'+data,
    method,
    //data
  }, true)
}
